﻿using Logger.LogFactory;
using Logger.Logfile;
using System;

namespace Logger
{
    class Program
    {
        static void Main(string[] args)
        {
             Log log;//日志对象
            var Data = new DatabaseLogFactory();//数据库
            log = Data.createLog();
            log.writeLog();
            Console.WriteLine("------------------------------------------");
            var FileLog = new FileLogFactory();//文件
            log = FileLog.createLog();
            log.writeLog();

        }
    }
}
